﻿using System.IO;
using System.Reflection;

namespace River.IntAI
{
    public partial class FrmAbout : BaseForm
    {
        public FrmAbout()
        {
            InitializeComponent();
            LoadReadme();
        }
        private void LoadReadme()
        {
            var appVersion = Assembly.GetExecutingAssembly().GetName().Version.ToString();
            this.Text = string.Format("程序版本号：{0}", appVersion);
            string path = River.Core.Utils.GetFullName("Readme.txt");
            if (!File.Exists(path))
                return;
            richTextBox1.Text = File.ReadAllText(path).Replace("{version}", appVersion) ;
        }
    }
}
